package com.sky.sky_pojo.dto;

import java.math.BigDecimal;

import lombok.Data;

/**
 * 订单搜索返回类、
 * 比订单Orders实体类仅仅多了一个字段orderDishes 订单包含的菜品，以字符串形式展示，中间以逗号分隔
 */

/**
 * 订单搜索值对象(VO)
 * 用于封装订单搜索相关的查询条件
 */
@Data
public class OrderSearchVO {
    private Long id;
    private String number;
    private Integer status;
    private Long userId;
    private Long addressBookId;
    private String orderTime; // 或 LocalDateTime
    private String checkoutTime;
    private Integer payMethod;
    private Integer payStatus;
    private BigDecimal amount;
    private String remark;
    private String userName;
    private String phone;
    private String address;
    private String consignee;
    private String cancelReason;
    private String rejectionReason;
    private String cancelTime;
    private String estimatedDeliveryTime;
    private Integer deliveryStatus;
    private String deliveryTime;
    private Integer packAmount;
    private Integer tablewareNumber;
    private Integer tablewareStatus;
    
    /**
     * 新增字段
     * 订单中的菜品, 以字符串形式展示，中间以逗号分隔
     */
    private String orderDishes;
}
